package com.yygo.dao.hibernate;

import com.yygo.dao.VehicleModelDao;
import com.yygo.model.VehicleModel;
import org.springframework.stereotype.Repository;

/**
 * Created by tiansha on 2015/6/23.
 */
@Repository("vehicleModelao")
public class VehicleModelDaoHibernate extends GenericDaoHibernate<VehicleModel, Long> implements VehicleModelDao {

    public VehicleModelDaoHibernate() {
        super(VehicleModel.class);
    }

    @Override
    public Long getGuidePrice(Long modelId) {
        VehicleModel vehicleModel = super.get(modelId);
        return vehicleModel.getGuidePrice();
    }
}
